var page = sm("do_Page");
var app = sm("do_App");
var nf = sm("do_Notification");
var hashdata = mm("do_HashData");
var root = ui("$");
//andriod返回键
page.on("back", function() {
    app.closePage();
});
var headerAout = ui("headerAout");
var addheader = headerAout.add("header", "source://view/reuse/header.ui", 0, 0);
//左上角-返回
var headerLeft = ui(addheader+".headerLeft");
headerLeft.on("touch", function() {
    app.closePage()
});
var headerRight = ui(addheader + ".headerRight");
var imgNext = ui(addheader + ".imgNext");
imgNext.source = "source://image/share/share.png";
imgNext.visible = true;
var header = ui("header");
header.bindData(hashdata);
hashdata.addData({
    "labelTitle" : "投票"
})
header.refreshData();
var addShare = root.add("share","source://view/reuse/share.ui", 0, 0);
headerRight.on("touch", "", 3000, function() {
	page.fire("onShare",{showView:"true",shareTitle:'',shareContent:'',shareId:'',shareType:'',shareImage:''});
})